FS-Cache: Initialise stores_lock in netfs cookie
authorDavid Howells <dhowells@redhat.com>
Wed, 24 May 2017 01:54:06 +0000 (21:54 -0400)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:58:06 +0000 (02:58 +0000)
commitad1a0a4f02ed7882a42580c51ecd8153a353ca37
tree191f9a8c11594dd879f4097fabb1bd7e063bca8c
parentd520ca64f09925e8bf50129268391ba0d127013c
FS-Cache: Initialise stores_lock in netfs cookie

[ Upstream commit 62deb8187d116581c88c69a2dd9b5c16588545d4 ]

Initialise the stores_lock in fscache netfs cookies.  Technically, it
shouldn't be necessary, since the netfs cookie is an index and stores no
data, but initialising it anyway adds insignificant overhead.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Steve Dickson <steved@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/fscache/netfs.c